package com.gqzm.side.common.component;

import com.gqzm.side.common.socket.CloudPlatformSocketClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @ClassName: {@link SocketInitialer}
 * @description: TODO
 * @author: peter qin
 * @date: 2023 12 19
 * @version: 1.0
 **/
@Slf4j
@Component
public class SocketInitialer implements ApplicationRunner {

    @Resource
    private CloudPlatformSocketClient cloudPlatformSocketClient;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        cloudPlatformSocketClient.start();
    }
}
